package com.coolw.core.function;

import java.util.function.Supplier;

/**
 * Supplier函数：不接收任何参数，得到结果T。调用get方法执行
 *
 * @author coolw
 * @date 2025/3/21 9:10
 */
public class SupplierTest {

    public static void main(String[] args) {
        Supplier<String> supplier = () -> "coolw";
        String result = supplier.get();
        System.out.println(result);
    }
}
